<?php
//Connexion à la BDD
include ("../commun_shop/utils/settings_bdd_shop.php");
mysql_connect($host_bd, $id_bd, $mdp_bd);
mysql_select_db("vanadium");
mysql_query("SET NAMES 'UTF8'");

$retour_infos_shop = mysql_query("SELECT * FROM shop WHERE id_shop='$shop'") or die(mysql_error());
$infos_shop = mysql_fetch_array($retour_infos_shop);

if ($infos_shop['droit_ajout_brousouf'] == 1) {
	?>
	<div id='corps'>
		<div id='titre_credit_compte'>Effectuer une opération sur le compte</div>
		<form method='get' action='../commun_shop/modules/demande_confirmation_gestion_brousoufs.php'>
			<div id='zone_recherche_compte'>
				<table>
					<tr>
						<th>Num's :</th>
						<th>Montant de l'opération :</th>
					</tr>
					<tr>
						<td><input type='text' id='recherche_compte' name='id_consommateur'/></td>
						<td><input type='text' id='somme_credit' name='somme'/> €</td>
					</tr>
				</table>
			</div>
		</form>
		<div id ='bouton_achat'>
			<input type="radio" name="type_operation" value="credit" />Créditer<br />
			<input type="radio" name="type_operation" value="debit" />Débiter<br />
			<a href='../commun_shop/modules/demande_confirmation_gestion_brousoufs.php'
			   class='colorbox' title='Demande Confirmation Conso'>
				<input type='submit' value="Effectuer l'opération" id='bouton'/>
			</a>
		</div>
	</div>
	<?php
} else {
	header('location: ./admin.php');
}
//Fermeture de la connexion
mysql_close();
?>